package com.turtle.entity.sql;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author lijiayu
 * @date 2020/7/20
 * @description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
@TableName("tbg_blog")
public class Blog {
    private Long id;
    private Long userId;
    /**
     * 分类id
     */
    private Long blogSortId;
    /**
     * 1：原创 2：转载
     */
    private Integer type;

    private String title;
    private String content;
    /**
     * 点击量
     */
    private Integer viewCount;
    /**
     * 评论数
     */
    private Integer commentCount;
    /**
     * 点赞数
     */
    private Integer likeCount;
    /**
     * 0：公开  1：关注我  2：私人  3：草稿箱  4：冻结  -1:回收站
     */
    private Integer status;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Boolean isDelete;
}
